<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-once 指令</title>
</head>
<body>
<div id="app">
  <h1 v-once="info">{{ info }}</h1>
</div>

<script type="module">
    import {createApp, ref} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup(){
              let info = ref("Hello, Vue!");
                return {
                  info
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>